import request from '@/utils/request'
// -------- 绩效规则 --------

let BASE_ADDRESS = '/base/position'

// 角色设定
/* /base/position/list */
export const getPositionList = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

// 添加角色
/* /base/position/add */
export const addPosition = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data: data
    })
}

// 编辑角色
/* /base/position/add */
export const editPosition = (data) => {
	return request({
			url: `${BASE_ADDRESS}/edit`,
			method: 'put',
			data: data
	})
}
